//
//  ViewController.m
//  Block
//
//  Created by dllo on 16/1/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
/** 函数声明 */

int sum(int, int);

/** 函数实现 */
int sum(int x,int y){


    return x + y;

}



@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [self functionReview];
    
    
}
#pragma mark - 函数复习
- (void)functionReview{

    /** 
      * 函数由三部分组成 声明 实现 调用
     */
    
    sum(3, 5);
    NSLog(@"%d",sum(3,5));


}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
